<?php
use app\modules\clinical\models\Patient;
use app\modules\clinical\models\ExcelHsp;

$params = ExcelHsp::getParams();
?>

  <!-- 第二部分 -->
  <tr class="title">
      <td colspan="6"><h4>一、患者信息与表格信息</h4></td>
  </tr>
  <tr>
      <th>姓名</th>
      <td><?= ($model->rel_id == 0) ? Yii::$app->session->get('pt_name') : Patient::findOne(['pk_id'=>$model->pt_id])->pt_name ?></td>
      <th>与患者关系</th>
      <td colspan="2"><?= ($model->rel_id == 0) ? '本人' : Patient::getParams('relation')[$rel[$model->pt_id]] ?></td>
  </tr>
  <tr>
      <th>创建人</th>
      <td><?= $model->crt_name ?></td>
      <th>创建时间</th>
      <td colspan="3"><?= $model->crt_time ?></td>
  </tr>
  <tr>
      <th>修改人</th>
      <td><?= $model->update_name ?></td>
      <th>修改时间</th>
      <td colspan="3"><?= $model->update_at ?></td>
  </tr>
  <tr class="title">
      <td colspan="5"><h4>二、病史资料</h4></td>
  </tr>
  <tr>
      <th width="230px">发病年龄</th>
      <td><?= $model->excel->pt_age ?></td>
      <th>现病史</th>
      <td colspan="2"><?= $model->excel->pt_history ?></td>
  </tr>
  <tr class="title">
      <td colspan="5"><h4>三、体征</h4></td>
  </tr>
  <tr>
      <th rowspan="2">肌力</th>
      <th>左上肢</th>
      <td><?= $model->excel->bd_jili_lu ?></td>
      <th>左下肢</th>
      <td><?= $model->excel->bd_jili_ld ?></td>
  </tr>
  <tr>
      <th>右上肢</th>
      <td><?= $model->excel->bd_jili_ru ?></td>
      <th>右下肢</th>
      <td><?= $model->excel->bd_jili_rd ?></td>
  </tr>
  <tr>
      <th rowspan="2">肌张力</th>
      <th>左上肢</th>
      <td><?= $params['jizhangli'][$model->excel->bd_jiz_lu] ?></td>
      <th>左下肢</th>
      <td><?= $params['jizhangli'][$model->excel->bd_jiz_ld] ?></td>
  </tr>
  <tr>
      <th>右上肢</th>
      <td><?= $params['jizhangli'][$model->excel->bd_jiz_ru] ?></td>
      <th>右下肢</th>
      <td><?= $params['jizhangli'][$model->excel->bd_jiz_rd] ?></td>
  </tr>
  <tr>
      <th rowspan="4">腱反射</th>
      <th>肱二头肌反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_er] ?></td>
      <th>肱三头肌反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_san] ?></td>
  </tr>
  <tr>
      <th>桡骨膜</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_rao] ?></td>
      <th>膝反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_xi] ?></td>
  </tr>
  <tr>
      <th>踝反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_huai] ?></td>
      <th>髌阵挛</th>
      <td><?= $params['jianfan'][$model->excel->bd_zhen_bin] ?></td>
  </tr>
  <tr>
      <th>踝阵挛</th>
      <td colspan="3"><?= $params['jianfan'][$model->excel->bd_zhen_huai] ?></td>
  </tr>
  <tr>
      <th>病理征</th>
      <td colspan="2"><?= $params['yinyang'][$model->excel->bd_bingli] ?></td>
      <th>Hoffman征</th>
      <td><?= $params['yinyang'][$model->excel->bd_hoffman] ?></td>
  </tr>
  <tr>
      <th>感觉障碍（有无痛触觉障碍）</th>
      <td colspan="4"><?= $params['youwu'][$model->excel->bd_zhangai] ?></td>
  </tr>
  <tr>
      <th>下肢振动觉</th>
      <td colspan="2"><?= $params['xiazhi_zhen'][$model->excel->bd_xiazhi_zhen] ?></td>
      <th>下肢关节位置觉</th>
      <td><?= $params['xiazhi_zhen'][$model->excel->bd_xiazhi_wei] ?></td>
  </tr>
  <tr>
      <th>锥体外系</th>
      <td colspan="4"><?= $model->excel->bd_zhuiti ?></td>
  </tr>
  <tr>
      <th rowspan="2">共济运动</th>
      <th>指鼻试验</th>
      <td><?= $params['zhibi'][$model->excel->bd_gg_zhibi] ?></td>
      <th>跟膝胫试验</th>
      <td><?= $params['yinyang'][$model->excel->bd_gg_genxi] ?></td>
  </tr>
  <tr>
      <th>Romberg征</th>
      <td><?= $params['yinyang'][$model->excel->bd_gg_romberg] ?></td>
      <th>一字步</th>
      <td><?= $params['yizi'][$model->excel->bd_gg_yizi] ?></td>
  </tr>
  <tr>
      <th>植物神经功能检查（有无大小便障碍）</th>
      <td colspan="4"><?= $model->excel->bd_shenjing ?></td>
  </tr>
  <tr>
  		<th>肌萎缩（近端及远端）</th>
      <td colspan="2"><?= $params['youwu'][$model->excel->bd_weisuo_ji] ?></td>
      <th>弓形足</th>
      <td><?= $params['youwu'][$model->excel->bd_gongxing] ?></td>
  </tr>
  <tr>
  		<th>步态</th>
      <td colspan="2"><?= $model->excel->bd_butai ?></td>
      <th>视神经萎缩</th>
      <td><?= $params['youwu'][$model->excel->bd_weisuo_shi] ?></td>
  </tr>
  <tr>
  		<th>视网膜色素变性</th>
      <td colspan="2"><?= $params['youwu'][$model->excel->bd_sesu] ?></td>
      <th>构音障碍</th>
      <td><?= $params['youwu'][$model->excel->bd_gouyin] ?></td>
  </tr>
  <tr>
      <th>失语</th>
      <td colspan="2"><?= $params['youwu'][$model->excel->bd_shiyu] ?></td>
      <th>眼震</th>
      <td><?= $params['youwu'][$model->excel->bd_yanzhen] ?></td>
  </tr>
  <tr>
      <th>痴呆（智能检查：包括智力、定向力、记忆力）</th>
      <td colspan="4"><?= $model->excel->bd_chidai ?></td>
  </tr>
  <tr>
      <th>其他：皮肤病变（有无鱼鳞病、干皮病、皮肤色素减退）</th>
      <td colspan="4"><?= $model->excel->bd_else ?></td>
  </tr>
  <tr>
      <th>生长发育（有无身材矮小、骨骼畸形、脊柱侧弯等）</th>
      <td colspan="4"><?= $model->excel->bd_fayu ?></td>
  </tr>
